using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityOnlineCustomerDeductionsUpdateExtend
{
		public static OnlineCustomerDeductions ToUpdateEntity(this RequestOnlineCustomerDeductionsDto dto)
		{
			return new OnlineCustomerDeductions
			{
				OcdId = dto.id,
				OcdIsUsed = dto.isUsed,
			};
		}
	}
}
